package test;

import java.sql.SQLException;

import javax.sql.DataSource;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.opensymphony.xwork2.security.AcceptedPatternsChecker;

public class T1 {
	
	@Test
	public  void  mia() throws Exception{
		 ApplicationContext ac=new ClassPathXmlApplicationContext("spring.xml");
		 DataSource  ds=(DataSource) ac.getBean("dataSource");
		 System.out.println(ds.getConnection());
	}
  
           
}
